package br.com.daniele.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias(value = "dup")
@Entity
public class Dup {

	private long id;
	private String nDup;
	private String dVenc;
	private String vDup;
	private Cobr cobr;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getnDup() {
		return nDup;
	}

	public String getdVenc() {
		return dVenc;
	}

	public String getvDup() {
		return vDup;
	}

	public void setnDup(String nDup) {
		this.nDup = nDup;
	}

	public void setdVenc(String dVenc) {
		this.dVenc = dVenc;
	}

	public void setvDup(String vDup) {
		this.vDup = vDup;
	}

	@ManyToOne
    @JoinColumn(name = "id_cobranca")
	public Cobr getCobr() {
		return cobr;
	}

	public void setCobr(Cobr cobr) {
		this.cobr = cobr;
	}
	
	
	

}
